<template>
    <div id="app-layout">
        <div class="show-filters"></div>

        <navigation></navigation>
        <router-view></router-view>
    </div>
</template>

<script>
    import Navigation from "../components/global/Navigation";
    export default {
        name: "layout",
        components:{
            Navigation,
        },
        created() {
            this.$store.dispatch('loadCafes');
            this.$store.dispatch('loadUser');
            this.$store.dispatch('loadBrewMethods')
        }
    }
</script>

<style lang="scss">
    @import '~@/abstracts/_variables.scss';

    div#app-layout {
        div.show-filters {
            height: 90px;
            width: 23px;
            position: absolute;
            left: 0px;
            background-color: white;
            border-top-right-radius: 3px;
            border-bottom-right-radius: 3px;
            line-height: 90px;
            top: 50%;
            cursor: pointer;
            margin-top: -45px;
            z-index: 9;
            text-align: center;
        }
    }
</style>
